﻿<%@ Assembly Name="TVR.Timerjobs, Version=1.0.0.0, Culture=neutral, PublicKeyToken=bd568d3eabdc4db7" %>

<%@ Page Language="C#" Inherits="TVR.Timerjobs.PagesCode.TimerjobCreation"
    MasterPageFile="~/_admin/admin.master" %>

<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls"
    Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls"
    Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Register TagPrefix="wssawc" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls"
    Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="AdminControls" Namespace="Microsoft.SharePoint.WebControls"
    Assembly="Microsoft.SharePoint.ApplicationPages.Administration" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormSection" Src="~/_controltemplates/InputFormSection.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="ButtonSection" Src="~/_controltemplates/ButtonSection.ascx" %>
<asp:Content ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
    <sharepoint:encodedliteral runat="server" text="TVR timer jobs creation" encodemethod='HtmlEncode' />
</asp:Content>
<asp:Content ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server">
    <sharepoint:encodedliteral runat="server" text="TVR timer jobs creation" encodemethod='HtmlEncode' />
</asp:Content>
<asp:Content ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">
</asp:Content>
<asp:Content ContentPlaceHolderID="PlaceHolderPageDescription" runat="server">
    <sharepoint:encodedliteral runat="server" text="This page is used to create timerjob(s)."
        encodemethod='HtmlEncodeAllowSimpleTextFormatting' />
</asp:Content>
<asp:Content ContentPlaceHolderID="PlaceHolderMain" runat="server">
    <table width="100%" class="propertysheet" cellpadding="0" cellspacing="0" border="0">
        <tr>
            <td class="ms-error">
                <asp:Literal ID="ErrorMessageLiteral" runat="server" EnableViewState="false" />
            </td>
        </tr>
    </table>
    <table>
        <!-- Timerjob Type -->
        <wssuc:inputformsection runat="server" title="Timerjob type" description="Choose the type of timerjob you wish to create an instance for">
            <template_inputformcontrols>
       <tr>
	        <td>
	        <asp:DropDownList AutoPostBack="true" ID="ddlTimerjobTypes" runat="server">
               </asp:DropDownList>
	        </td>
	    </tr>
        </template_inputformcontrols>
        </wssuc:inputformsection>
        <!-- Timerjob name -->
        <wssuc:inputformsection runat="server" title="Timerjob name" description="Enter a name for the timerjob instance">
            <template_inputformcontrols>
       <tr>
	        <td><asp:TextBox ID="txtJobName" runat="server" /></td>
	    </tr>
        </template_inputformcontrols>
        </wssuc:inputformsection>
        <!-- New Schedule -->
        <wssuc:inputformsection runat="server" title="Schedule" description="Select a schedule from the list">
            <template_inputformcontrols>
        <tr>
            <td>
                <asp:DropDownList AutoPostBack="true" runat="server" ID="ddlPickSchedule">
                    <asp:ListItem Text="Schedule Minutely" Value="PlaceHolderScheduleMinutely"></asp:ListItem>
                    <asp:ListItem Text="Schedule Hourly" Value="PlaceHolderScheduleHourly"></asp:ListItem>
                    <asp:ListItem Text="Schedule Daily" Value="PlaceHolderScheduleDaily"></asp:ListItem>
                </asp:DropDownList>
                <asp:PlaceHolder ID="PlaceHolderSchedules" runat="server">
                    <br />
                    <asp:PlaceHolder ID="PlaceHolderScheduleMinutely" runat="server">
                        <table class="ms-authoringcontrols">
                            <tr>
                                <td>
                                    Interval between minutes(Ex 30 for every 30 minutes):
                                </td>
                                <td>
                                    <asp:TextBox ID="txtScheduleMinutelyInterval" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                        </table>
                    </asp:PlaceHolder>
                    <asp:PlaceHolder ID="PlaceHolderScheduleHourly" runat="server">
                        <table class="ms-authoringcontrols">
                            <tr>
                                <td>
                                    Beginminute each hour(Ex 30 for the 30th minute of each hour):
                                </td>
                                <td>
                                    <asp:TextBox ID="txtScheduleHourlyInterval" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                        </table>
                    </asp:PlaceHolder>
                    <asp:PlaceHolder ID="PlaceHolderScheduleDaily" runat="server">
                        <table class="ms-authoringcontrols">
                            <tr>
                                <td>
                                    Hour to start(Ex 20 for 20:30):
                                </td>
                                <td>
                                    <asp:TextBox ID="txtScheduleDailyHour" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Minute to start(Ex 30 for 20:30):
                                </td>
                                <td>
                                    <asp:TextBox ID="txtScheduleDailyMinute" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                        </table>
                    </asp:PlaceHolder>
                </asp:PlaceHolder>
            </td>
        </tr>
          </template_inputformcontrols>
        </wssuc:inputformsection>
        <!-- Timer job properties -->
        <wssuc:inputformsection runat="server" title="Timer job properties" description="All the public properties for the chosen timerjobdefenition">
            <template_inputformcontrols>
        <tr>
	        <td> <asp:PlaceHolder ID="PlaceHolderProperties" runat="server"></asp:PlaceHolder></td>
	    </tr>
        </template_inputformcontrols>
        </wssuc:inputformsection>
        <!-- Buttons -->
        <wssuc:ButtonSection runat="server">
            <template_buttons>
        <tr>
            <td><asp:Button Text="Create timerjob" runat="server" ID="btnCreate" /></td>
        </tr>
           </template_buttons>
        </wssuc:ButtonSection>
    </table>
</asp:Content>
